Class Operator

Summary

Fully Qualified Name: Laminas\Db\Sql\Predicate\Operator
Extends: AbstractExpression
Implements: PredicateInterface

Description

Methods

Name Description Defined By
__construct() Constructor Operator
getExpressionData() Get predicate parts for where statement Operator
getLeft() Get left side of operator Operator
getLeftType() Get parameter type on left side of operator Operator
getOperator() Get operator string Operator
getRight() Get right side of operator Operator
getRightType() Get parameter type on right side of operator Operator
setLeft() Set left side of operator Operator
setLeftType() Set parameter type for left side of operator Operator
setOperator() Set operator string Operator
setRight() Set right side of operator Operator
setRightType() Set parameter type for right side of operator Operator

Method Details

__construct()

Constructor

Parameter Name Type Description
$left int|float|bool|string
$operator string
$right int|float|bool|string
$leftType string TYPE_IDENTIFIER
$rightType string TYPE_IDENTIFIER

Returns:

getExpressionData()

Get predicate parts for where statement

Returns: array

getLeft()

Get left side of operator

Returns: int|float|bool|string

getLeftType()

Get parameter type on left side of operator

Returns: string

getOperator()

Get operator string

Returns: string

getRight()

Get right side of operator

Returns: int|float|bool|string

getRightType()

Get parameter type on right side of operator

Returns: string

setLeft()

Set left side of operator

Parameter Name Type Description
$left int|float|bool|string

Returns: self Provides a fluent interface

setLeftType()

Set parameter type for left side of operator

Parameter Name Type Description
$type string TYPE_IDENTIFIER

Returns: self Provides a fluent interface

setOperator()

Set operator string

Parameter Name Type Description
$operator string

Returns: self Provides a fluent interface

setRight()

Set right side of operator

Parameter Name Type Description
$right int|float|bool|string

Returns: self Provides a fluent interface

setRightType()

Set parameter type for right side of operator

Parameter Name Type Description
$type string TYPE_IDENTIFIER

Returns: self Provides a fluent interface

Top